package com.muyu.system.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import com.muyu.system.domain.DanmoVipRights;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * vip人员对象 danmo_vip_person
 * 
 * @author yl
 * @date 2025-06-10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoVipPersonVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderSn;

    /** 支付总额（分） */
    @Excel(name = "支付总额", readConverterExp = "分=")
    private Long payAmount;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 支付订单号 */
    @Excel(name = "支付订单号")
    private String payOrderNo;

    /** 删除状态 1删除 0未删除 */
    @Excel(name = "删除状态 1删除 0未删除")
    private Integer deleteFlag;

    /** 支付的用户id */
    @Excel(name = "支付的用户id")
    private Long userId;

    /** 支付方式  1 微信app  2支付宝app */
    @Excel(name = "支付方式  1 微信app  2支付宝app")
    private Integer payType;

    /** 支付状态 1成功  2失败 3进行中 4超时 */
    @Excel(name = "支付状态 1成功  2失败 3进行中 4超时")
    private Integer payStatus;

    /** vip信息id */
    @Excel(name = "vip信息id")
    private Long vipInfoId;

    /** vip套餐id */
    @Excel(name = "vip套餐id")
    private Long vipPackageId;

    /** vip信息名称 */
    @Excel(name = "vip信息名称")
    private String vipName;

    private List<DanmoVipRights> danmoVipRightsList;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderSn", getOrderSn())
            .append("payAmount", getPayAmount())
            .append("payTime", getPayTime())
            .append("payOrderNo", getPayOrderNo())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteFlag", getDeleteFlag())
            .append("userId", getUserId())
            .append("payType", getPayType())
            .append("payStatus", getPayStatus())
            .append("vipInfoId", getVipInfoId())
            .append("vipPackageId", getVipPackageId())
            .append("vipName", getVipName())
            .toString();
    }
}
